package apis

import (
	"gitee.com/byx_darwin/ncloud-go/core"
	"gitee.com/byx_darwin/ncloud-go/core/net/consts"
)

type QueryDomainRequest struct {
	core.NCloudRequest
}

func NewQueryDomainsRequest() *QueryDomainRequest {
	return &QueryDomainRequest{
		core.NCloudRequest{
			Path:   "/domain",
			Method: consts.MethodGet,
		},
	}
}

type QueryDomainResponse struct {
	Ok      bool       `json:"ok"`
	Msg     string     `json:"msg"`
	Data    DomainData `json:"data,omitempty"`
	TrackID string     `json:"track_id"`
}

type DomainData struct {
	DomainList []string `json:"domain_list"`
}
